package renthouse.dao;

import renthouse.entry.Admin;
import org.junit.Test;

import java.util.List;

/*
 * @创建者：黄苟苟
 * @创建时间：2021/5/24   11:50
 * @Description描述
 **/public class AdminDaoTest {
     AdminDao adminDao=new AdminDao();
     Admin admin=new Admin();

    @Test
    public void insert() {
    }

    @Test
    public void deleteById() {
    }

    @Test
    public void updateById() {
    }

    @Test
    public void query() {
        admin.setLoginname("大谷01");
        List <Admin> list= adminDao.query(admin);
        System.out.println(list);

    }

    @Test
    public void queryForPage() {
        List<Admin> list=adminDao.queryForPage(admin,1,1);
        System.out.println(list);
    }
}